package com.seari.AlarmSystem.service;

import redis.clients.jedis.Jedis;

import com.seari.AlarmSystem.utils.JedisPoolUtils;
import com.seari.AlarmSystem.utils.RedisOperation;



public class GetJedisCache {
	
	public static void main(String[] args) {
		
		Jedis jedis = null ;
	
		try{
			
			jedis = JedisPoolUtils.getJedis();
			
			String hget = jedis.hget("AI", "2");
			
			System.out.println(hget);
			
		}finally{
			
			 if (jedis != null) {
				 
	                jedis.close();
	                
	            }
			 
		}
		
	}
	
		
		
	
	
	
	

}
